let data = {
  actions: [
    [
      {
        actorCellId: 0,
        championId: 0,
        completed: false,
        id: 1,
        isAllyAction: true,
        isInProgress: true,
        pickTurn: 1,
        type: "pick",
      },
    ],
  ],
  allowBattleBoost: false,
  allowDuplicatePicks: false,
  allowLockedEvents: false,
  allowRerolling: false,
  allowSkinSelection: true,
  bans: {
    myTeamBans: [],
    numBans: 0,
    theirTeamBans: [],
  },
  benchChampions: [],
  benchEnabled: false,
  boostableSkinCount: 1,
  chatDetails: {
    chatRoomName: "c1~4cd3b2364556248e2995f98b315d2f0d3bb7bd86@sec.pvp.net",
    chatRoomPassword: "KEiLx5IpUEVSQkxD",
    multiUserChatJWT:
      "eyJraWQiOiIxIiwiYWxnIjoiUlMyNTYifQ.eyJ0Z3QiOiJwYjEiLCJzdWIiOiI5MTVkMDg0MS0zYmJjLTU1YjAtYWMzYS1lNDU1ZDRjMjJlMDIiLCJjaG4iOiI0NDI5MzE4NDc4LXRlYW0xIiwidHlwIjoibG9sLWNoYW1wLXNlbGVjdCIsImV4cCI6MTY2NzgyMDk4MiwiaWF0IjoxNjY3ODIwMzgyLCJqdGkiOiI3NmZjNjIyZi04NmRjLTQ5MjUtOTA5OC1mMWQ3OTYyOGJhYjkifQ.Qbd44xOYgY7p0hKP4hw-1Pr7uFGzzmhJmddrm7f8XU8OG50JZUFH7PavJZEUjeP0l4B7YEKIO9p2mYJZBNyYXXOdgxFz7Rht44aoItt8QiIXiSSlIpQnOOApSXRReJ5wuEB1a9lWUbzX82kAEDT4n_2OMo67gqjXQBqD4-qevM-fxseXMBk1kFiXrBEbAEKripybX8GSEeUHwKSP-76RAj3b74iqEsLs81qJhcl9QyBshkvydTqzDVfH-Fv-oX3QNWeXlSiel8iX5zJKPHN_QzqgA6tgdnwBYZqd9DnuXme-xQqfSYapbGkgA5ph4mjtfO3rjXlmN-CWDOJI5GAuvw",
  },
  counter: -1,
  entitledFeatureState: {
    additionalRerolls: 0,
    unlockedSkinIds: [],
  },
  gameId: 0,
  hasSimultaneousBans: false,
  hasSimultaneousPicks: true,
  isCustomGame: true,
  isSpectating: false,
  localPlayerCellId: 0,
  lockedEventIndex: -1,
  myTeam: [
    {
      assignedPosition: "",
      cellId: 0,
      championId: 0,
      championPickIntent: 0,
      entitledFeatureType: "",
      nameVisibilityType: "",
      obfuscatedPuuid: "",
      obfuscatedSummonerId: 0,
      puuid: "",
      selectedSkinId: 0,
      spell1Id: 7,
      spell2Id: 4,
      summonerId: 2325530825427040,
      team: 1,
      wardSkinId: -1,
    },
  ],
  recoveryCounter: 0,
  rerollsRemaining: 0,
  skipChampionSelect: false,
  swaps: [],
  theirTeam: [],
  timer: {
    adjustedTimeLeftInPhase: 89263,
    internalNowInEpochMs: 1667820385346,
    isInfinite: false,
    phase: "BAN_PICK",
    totalTimeInPhase: 92428,
  },
  trades: [],
};

let arr = [
  {
    id: 2,
    name: "123",
  },
  {
    id: 1,
    name: "1",
  },
];

let a = arr.filter( x => x.id === 1)[0]
console.log("a", a);
